import request from '@/utils/request'

// 查询公司银行账户列表
export function listBankCompany(query) {
  return request({
    url: '/house_sale/BankCompany/list',
    method: 'get',
    params: query
  })
}

// 查询公司银行账户详细
export function getBankCompany(bankaccount) {
  return request({
    url: '/house_sale/BankCompany/' + bankaccount,
    method: 'get'
  })
}

// 新增公司银行账户
export function addBankCompany(data) {
  return request({
    url: '/house_sale/BankCompany',
    method: 'post',
    data: data
  })
}

// 修改公司银行账户
export function updateBankCompany(data) {
  return request({
    url: '/house_sale/BankCompany',
    method: 'put',
    data: data
  })
}

// 删除公司银行账户
export function delBankCompany(bankaccount) {
  return request({
    url: '/house_sale/BankCompany/' + bankaccount,
    method: 'delete'
  })
}
